package com.atguigu._36observer.my;

/**
 * https://www.runoob.com/design-pattern/observer-pattern.html
 */
public class Client {
   public static void main(String[] args) {
      Subject subject = new Subject();
 
      new ObserverHexa(subject);
      new ObserverOctal(subject);
      new ObserverBinary(subject);
 
      System.out.println("First state change: 15");   
      subject.setState(15);
      System.out.println("Second state change: 10");  
      subject.setState(10);
   }
}